<template>
    <view class="content">
        <image class="logo" src="/static/logo.png"></image>
        <view>
            <text class="title">{{ title }}</text>
        </view>

        <text @click="onClick">测试999</text>
    </view>
</template>

<script>
    import { loginApi } from '@/api/index.js'
    export default {
        data() {
            return {
                title: 'Hello',
            }
        },
        onLoad() {},
        methods: {
            async onClick() {
                const params = {
                    code: '2',
                    password:
                        'JmrO1keqWXl2orwEQU127nAMBW7kwIJl/Zt5UPao4umUkH+llh+L+Gf/lwqBdshb3MhC8CHOlHZsVKgUs3tEfQ==',
                    username: 'admin',
                    uuid: '65c1472c167c4338a3d98907606ce130',
                }
                const res = await loginApi(params)
                console.log(res, '测试999')
            },
        },
    }
</script>

<style>
    .content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .logo {
        height: 200rpx;
        width: 200rpx;
        margin: 200rpx auto 50rpx auto;
    }

    .text-area {
        display: flex;
        justify-content: center;
    }

    .title {
        font-size: 36rpx;
        color: #8f8f94;
    }
</style>
